package com.party.admin.web.dto.output.mall;

import com.party.core.model.mall.MallShowSubject;
import org.springframework.beans.BeanUtils;

/**
 * 展示商品专题视图
 * Created by wei.li
 *
 * @date 2017/8/25 0025
 * @time 16:27
 */
public class MallShowSubjectOutput extends MallShowSubject {

    //二维码
    private String qrCode;

    // 模板名
    private String templateName;

    private String realname;
    private String logo;

    public String getQrCode() {
        return qrCode;
    }

    public void setQrCode(String qrCode) {
        this.qrCode = qrCode;
    }

    public String getTemplateName() {
        return templateName;
    }

    public void setTemplateName(String templateName) {
        this.templateName = templateName;
    }

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }

    public String getLogo() {
        return logo;
    }

    public void setLogo(String logo) {
        this.logo = logo;
    }

    public static MallShowSubjectOutput transform(MallShowSubject mallShowSubject){
        MallShowSubjectOutput mallShowSubjectOutput = new MallShowSubjectOutput();
        BeanUtils.copyProperties(mallShowSubject, mallShowSubjectOutput);
        return mallShowSubjectOutput;
    }
}
